//
//  CoreUserNetworking.h
//  CoreUser
//
//  Created by Demi on 17/04/2017.
//  Copyright © 2017 Azazie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>
#import <base/base.h>

NS_ASSUME_NONNULL_BEGIN

@interface CoreUserNetworking : NSObject

+ (RACSignal<AccessToken *> *)registerWithEmail:(NSString *)email password:(NSString *)passwd weddingDate:(NSDate *)weddingDate is_guest:(int)guest;
+ (RACSignal<AccessToken *> *)loginWithEmail:(NSString *)email password:(NSString *)password;

+ (RACSignal<AccessToken *> *)loginWithFacebookAccessToken:(NSString *)token;
+ (RACSignal<AccessToken *> *)loginWithFacebookAccessToken:(NSString *)token email:(NSString *)email;
+ (RACSignal<AccessToken *> *)loginWithFacebookAccessToken:(NSString *)token email:(NSString *)email password:(NSString *)passwd;

+ (RACSignal *)requestResetPasswordWithEmail:(NSString *)email;

+ (RACSignal *)logout;

@end

NS_ASSUME_NONNULL_END
